<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./lib/dist/include-openlayers-local.js"></script>
  </head>
  <body>
    <div id="map"></div>
    <script>
      const docLayer = new Zondy.Map.Doc('', 'traffic', {
        ip: 'localhost',
        port: 6163
      })
      // const tileLayer = new Zondy.Map.TileLayer('', '新地图1', {
      //   host: 'localhost',
      //   port: 6163
      // })
      console.log(docLayer)
      const map = new ol.Map({
        target: 'map',
        layers: [docLayer],
        view: new ol.View({
          projection: 'EPSG:4326',
          center: [117, 26],
          zoom: 6
        })
      })
    </script>
  </body>
</html>
